package com.lx.test.decry;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lX
 * @version JDK 8
 * @className FilterConfig (此处以class为例)
 * @date 2024/6/12
 * @description TODO
 */
@Configuration
public class FilterConfig {

    @Bean
    public FilterRegistrationBean filterRegistrationBean(){
        FilterRegistrationBean bean = new FilterRegistrationBean();
        bean.setFilter(new DecryptFilter());
        bean.addUrlPatterns("/*");
        return bean;
    }
}
